home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
003
/
chrchpr4.arc
/
MSPMINAC.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
2KB
|
75 lines
* Program MSPMINAC - Prints report of birthdays, new, changes, newly-inactives
* "last month" = current month, as entered into DBASE
* ACTVNAME = Full-church name, or S.S. class name
* ANAME1='ALL' or SS:SC:MEMB code * BNAME = SKIP criteria
* BRTHDAYS (Y/N)?
If ANAME1<>'ALL'
Find &ANAME1
If # = 0
Accept 'No records found with this S.S. code. Press <retn> ' to XX
RETURN
endif
endif
Store ' ' to XXTRA
Store $(date(),1,2) to inbmo
Store inbmo+$(date(),7,2) to inmo
Store T to beginng
Store 2 to curline
Set format to print
@ 0,10 say actvname+curmonth+', 19'+$(date(),7,2)
Do while .not. EOF
If .not. BEGINNG
Store trim(last:name)+', '+trim(first:name) to fnm
If len(fnm) > 20
Store $(fnm,1,20) to fnm
else
Store 20-len(fnm) to lenfnm
Store fnm+$(xxtra,1,lenfnm) to fnm
endif
Store trim(address)+', '+trim(city:state) to xaddress
If BRTHDAYS
Store $(birthdate,1,5)+', '+fnm to fnm
endif
If len(xaddress)>30
Store $(xaddress,1,30) to xaddress
endif
@ curline,0 say fnm+' h:'+home:phone+' '+xaddress+' '+zip
Store curline+1 to curline
If curline>60
EJECT
Store 3 to curline
@ 1,10 say actvname+curmonth+curyear
endif
SKIP
endif
Store F to BEGINNG
Do while .not. EOF .and. (* .or. &BNAME)
SKIP
enddo
If ANAME1<>'ALL'
If SS:SC:MEMB<>ANAME1
GOTO BOTTOM
SKIP
endif
endif
enddo
If curline=2
@ curline,1 say 'No names found.'
endif
EJECT
Set format to screen
RETURN
"last month" = current month, as entered into DBASE
* ACTVNAME = Full-church name, or S.S. class name
* ANAME1='ALL' or SS:SC:MEMB code * BNAME = SKIP criteria
* BRTHDAYS (Y/N)?
If ANAME1<>'ALL'
Find &ANAME1
If # = 0
Accept 'No records found with this S.S. code. Press <retn> ' to XX
RETURN
endif
endif
Store ' ' to XXTRA
Store $(date(),1,2) to inbmo
Store inbmo+$(da